public static class Config
{
    static Config()
    {
        try
        {
            var txt = System.IO.File.ReadAllText(logfile);
            ojb = Newtonsoft.Json.Linq.JObject.Parse(txt);
        }
        catch
        {
            ojb = new Newtonsoft.Json.Linq.JObject();
        }
    }
    const string logfile = "editorconfig.json";
    static Newtonsoft.Json.Linq.JObject ojb;
    public static void Set(string key, string value)
    {
        ojb[key] = value;
        var str = ojb.ToString(Newtonsoft.Json.Formatting.Indented);
        System.IO.File.Delete(logfile);
        System.IO.File.WriteAllText(logfile, str);
    }
    public static string Get(string key)
    {
        if (ojb.ContainsKey(key))
        {
            return ojb[key].ToString();
        }
        else
        {
            return null;
        }

    }
}